﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage1.master" AutoEventWireup="true" CodeFile="NguoiDung_KetQuaTimKiem.aspx.cs" Inherits="ChucNang_NguoiDung_NguoiDung_KetQuaTimKiem" Title="Untitled Page" %>

<%@ Register src="../../UserControls/PageInterface.ascx" tagname="PageInterface" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<center>
    <h2>KẾT QUẢ TÌM KIẾM</h2>
    <table>
    <tr><td>Số sản phẩm trang 1 trang:</td>
    <td>
    <asp:DropDownList ID="ddlPhanTrang" runat="server" AutoPostBack="True" 
        onselectedindexchanged="ddlPhanTrang_SelectedIndexChanged">
        <asp:ListItem>5</asp:ListItem>
        <asp:ListItem>10</asp:ListItem>
        <asp:ListItem>20</asp:ListItem>
    </asp:DropDownList>
    </td>
    <td>Cách hiễn thị:</td>
    <td>
        <asp:DropDownList ID="ddlThuTu" runat="server" AutoPostBack="True" 
            onselectedindexchanged="ddlThuTu_SelectedIndexChanged">
            <asp:ListItem Value="1">Theo thứ tự ABC</asp:ListItem>
            <asp:ListItem Value="2">Giảm dần theo thời gian đăng</asp:ListItem>
            <asp:ListItem></asp:ListItem>
        </asp:DropDownList>
    </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="LBLSOLUONG" runat="server" Text=""></asp:Label>
        </td>
    </tr>
    </table>
    
    <asp:DataList ID="DataList_DanhSachSanPham" runat="server" 
        RepeatColumns="2" 
         RepeatDirection="Horizontal" CellPadding="5" CellSpacing="5">
        <EditItemStyle BorderColor="Red" BorderStyle="Dotted" BorderWidth="1px" />
        <ItemStyle BorderColor="Red" BorderStyle="Dotted" BorderWidth="1px" />
        <ItemTemplate>
            <table width="300">            
                <tr>
                    <td rowspan="3">
                        <asp:HyperLink ID="HyperLink_PicLink" runat="server" NavigateUrl='<%# Eval("MaSP", "NguoiDung_XemChiTietSanPham.aspx?MaSP={0}") %>'>
                            <asp:Image ID="Image_hinhSP"  Height="80" Width="80" runat="server" ImageUrl='<%# Eval("HinhAnh") %>' />
                        </asp:HyperLink>
                    </td>
                 </tr>
                 <tr>
                    <td>
                        <asp:HyperLink ID="hyperlink_TenSP" runat="server"  NavigateUrl='<%# Eval("MaSP", "NguoiDung_XemChiTietSanPham.aspx?MaSP={0}") %>'><%# Eval("TenSP") %></asp:HyperLink>
                    </td>
                  </tr>
                  <tr>
                    <td><%# Eval("GiaCu") %> VNĐ
                    </td>
                </tr>
            </table>
            
        </ItemTemplate>
    </asp:DataList>
    <uc1:PageInterface ID="PageInterface1" runat="server" />
     </center>
</asp:Content>

